﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.SystemManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2021-04-29 12:40
    /// 描 述：数据库表字段详情实体类
    /// </summary>
    [Table("TableFieldsDisctription")]
    public class TableFieldsDisctriptionEntity : BaseEntity
    {
        /// <summary>
        /// 表名
        /// </summary>
        /// <returns></returns>
        public string TableName { get; set; }
        /// <summary>
        /// 字段名
        /// </summary>
        /// <returns></returns>
        public string FieldName { get; set; }
        /// <summary>
        /// 数据类型
        /// </summary>
        /// <returns></returns>
        public string DataType { get; set; }
        /// <summary>
        /// 数据长度
        /// </summary>
        /// <returns></returns>
        public int? DataLenth { get; set; }
        /// <summary>
        /// 小数位
        /// </summary>
        /// <returns></returns>
        public int? Decimal { get; set; }
        /// <summary>
        /// 关键字
        /// </summary>
        /// <returns></returns>
        public bool? IsKey { get; set; }
        /// <summary>
        /// 允许空值
        /// </summary>
        /// <returns></returns>
        public bool? AllowNull { get; set; }
        /// <summary>
        /// 描述1
        /// </summary>
        /// <returns></returns>
        public string Disctription1 { get; set; }
        /// <summary>
        /// 描述2
        /// </summary>
        /// <returns></returns>
        public string Disctription2 { get; set; }
        /// <summary>
        /// 描述3
        /// </summary>
        /// <returns></returns>
        public string Disctription3 { get; set; }
        /// <summary>
        /// 外键关系
        /// </summary>
        /// <returns></returns>
        public string ForeignKey { get; set; }
        /// <summary>
        /// 外键关系表
        /// </summary>
        /// <returns></returns>
        public string ForeignKeyTable { get; set; }
        /// <summary>
        /// 外键对应的字段
        /// </summary>
        /// <returns></returns>
        public string ForeignKeyTableField { get; set; }
        /// <summary>
        /// 选择类型
        /// </summary>
        /// <returns></returns>
        public string SelectionType { get; set; }
        /// <summary>
        /// 数据行等级
        /// </summary>
        /// <returns></returns>
        public string DataRowLevel { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        /// <returns></returns>
        public string Memo { get; set; }
    }
}
